#include <stdio.h>
#include <math.h>
int main()
{
    int n,x,m,y,z;
    char ch;
    printf ("Please input the secret KEY:");
    scanf("%d",&n);
    getchar();
    printf("Please input a character:");
    scanf("%c",&ch);
    m=fabs(n);
    
    if(m<=26&&n<0)
      y=m;
      z=26-y;
      x=(int)ch+z;
    if(m<=26&&n>0)
      y=m;
      x=(int)ch+y;
    if(m>26&&n<0)
      y=m%26;
      z=26-y;
      x=(int)ch+z;
    if(m>26&&n>0)
      y=m%26;
      x=(int)ch+y;

        
    printf("The encrypted character is:%c\n",x);
    return 0;
}